package com.sensePlusVR.realGame;

public class RealGameVersion {
	static private final int RealGameV01 = 0;
	static private final int RealGameV02 = 1;
	static private final int SupportVersion = RealGameV02;
	static private int getVersion(String configfile){
		if(configfile.endsWith(".json")){
			return RealGameV02;
		}
		return RealGameV01;
	}
	
	static public boolean needUpgade(String gameConfig){
		int version = getVersion(gameConfig);
		if (version < SupportVersion)
			return true;
		else
			return false;
	}
}
